package com.kly.mission.serviceImpl;

import com.kly.MissionTestService;
import com.kly.mission.db.dao.MissionTestDao;
import com.kly.mission.db.entity.MissionTestEntity;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class MissionTestServiceImpl implements MissionTestService {
    @Autowired
    private MissionTestDao missionTestDao;

    @Override
    public String queryMissionById(Long missionId) {
        MissionTestEntity missionTestEntity = missionTestDao.selectByPrimaryKey(missionId);
        return missionTestEntity == null ? null : missionTestEntity.getName();
    }
}
